Skip to main content

Update a cost target planning entry.

PUT 

https://app.nops.io/c/cost_page/cost_target_planning/:id/

Updates a cost target planning entry with a complete payload, replacing all fields of the specified entry with the data provided. Requires data formatted as per the CostTargetPlanning schema.

Request

Path Parameters

    id integerrequired

    A unique integer value identifying this cost target planning.

Body

required

    dimension_1 Dimension 1 (string)nullable

    Possible values: <= 1024 characters

    dimension_2 Dimension 2 (string)nullable

    Possible values: <= 1024 characters

    previous_month Previous month (number)nullable
    avg_lookback Avg lookback (number)nullable
    percent_growth Percent growth (number)nullable
    percent_spend Percent spend (number)nullable
    target_type Target type (string)

    Possible values: [TOTAL, PLANNING_ITEM]

    target_items Target items (string)nullable
    cost_target Cost target (integer)nullable

Responses

Schema

    id ID (integer)
    created date-time
    modified date-time
    dimension_1 Dimension 1 (string)nullable

    Possible values: <= 1024 characters

    dimension_2 Dimension 2 (string)nullable

    Possible values: <= 1024 characters

    previous_month Previous month (number)nullable
    avg_lookback Avg lookback (number)nullable
    percent_growth Percent growth (number)nullable
    percent_spend Percent spend (number)nullable
    target_type Target type (string)

    Possible values: [TOTAL, PLANNING_ITEM]

    target_items Target items (string)nullable
    client Client (integer)
    cost_target Cost target (integer)nullable
curl -L -X PUT 'https://app.nops.io/c/cost_page/cost_target_planning/:id/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-nops-api-key: <API_KEY_VALUE>' \
-d '{
"dimension_1": "string",
"dimension_2": "string",
"previous_month": 0,
"avg_lookback": 0,
"percent_growth": 0,
"percent_spend": 0,
"target_type": "TOTAL",
"target_items": "string",
"cost_target": 0
}'
Request Collapse all
Base URL
https://app.nops.io/c/cost_page
Auth
Parameters
— pathrequired
Body required
{
  "dimension_1": "string",
  "dimension_2": "string",
  "previous_month": 0,
  "avg_lookback": 0,
  "percent_growth": 0,
  "percent_spend": 0,
  "target_type": "TOTAL",
  "target_items": "string",
  "cost_target": 0
}
ResponseClear

Click the Send API Request button above and see the response here!